package com.hjl.easy.user.controller;

import com.hjl.easy.user.client.OrderClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by hjl on 2022/7/25
 */
@RestController
@RequestMapping("userService")
public class UserController {

    @Autowired
    private OrderClient orderClient;

    @GetMapping("testorder")
    public String testOrder(){
        return orderClient.order();
    }
}
